Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify package_data in setup.py (minecraft.yaml must be included). #175

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jgehrcke
Copy link

pymclevel requires minecraft.yaml to be shipped, otherwise we obtain

IOError: [Errno 2] No such file or directory: 'pymclevel/minecraft.yaml'

This is currently happening if installing pymclevel right from git via pip (i.e. via $ pip install git+git://github.com/mcedit/pymclevel.git). By default, only Python files are included in the distribution build. There is a canonical mechanism for including non-Python files into the distribution build, as explained here: https://docs.python.org/2/distutils/setupscript.html#installing-package-data

I have used the package_data method in order to include minecraft.yaml and the license as well as readme into the dist build. This is currently untested, but this method generally works for my packages.

pymclevel requires minecraft.yaml to be shipped, otherwise

IOError: [Errno 2] No such file or directory: 'pymclevel/minecraft.yaml'
@jgehrcke
Copy link
Author

This would presumably fix #172.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant